<%@page import="java.util.ArrayList"%>
<%@page import="org.apache.naming.java.javaURLContextFactory"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>  
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<bean:define id="info" scope="page">
	你好
</bean:define>
<bean:write name="info"/>

<%
	java.util.List<Object> all=new ArrayList<Object>();
	all.add("hee");
	all.add("HAA");
	pageContext.setAttribute("alllist", all);	
%>

<bean:size id="len" name="alllist" scope="page"/>
${len }<br>
<logic:iterate id="arr" name="alllist">
	输出List集合:${arr}<br>
</logic:iterate>

<logic:present name="info" scope="page">
	存在info属性
</logic:present>
</body>
</html>